﻿using Barrage.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.TaskbarClock;

namespace BarrageGameAssistant.Controls
{
    public class SceneListView : ListViewEx
    {
        public SceneListView()
        {
            #region 设置列
            var headerId = new ColumnHeader
            {
                Name = "Id",
                Text = "序号",
                TextAlign = HorizontalAlignment.Left,
                Width = 80
            };
            Columns.Add(headerId);

            var headerSceneName = new ColumnHeader
            {
                Name = "SceneName",
                Text = "场景名称",
                TextAlign = HorizontalAlignment.Left,
                Width = 220
            };
            Columns.Add(headerSceneName);

            var headerSceneType = new ColumnHeader
            {
                Name = "SceneType",
                Text = "场景类型",
                TextAlign = HorizontalAlignment.Center,
                Width = 120
            };
            Columns.Add(headerSceneType);

            var headerThreshold = new ColumnHeader
            {
                Name = "Threshold",
                Text = "匹配阈值",
                TextAlign = HorizontalAlignment.Center,
                Width = 120
            };
            Columns.Add(headerThreshold);

            var headerDelay = new ColumnHeader
            {
                Name = "Delay",
                Text = "延时响应(毫秒)",
                TextAlign = HorizontalAlignment.Center,
                Width = 150
            };
            Columns.Add(headerDelay);
            #endregion

            this.ShowItemToolTips = true;
        }
    }
}
